import { ProFormSelect } from "@ant-design/pro-form"
import { useAxiosGet } from "@sker/sdk"

export const JdSearchCity: React.FC<{lang?: string}> = ({ lang }) => {
    const {fetch} = useAxiosGet('fj/yd/web/queryCity')
    return <div className="c-#676f86 text-14px py-12px py-16px w-330px" style={{}}>
        <div className="relative px-0px py-0px text-14px">
            <ProFormSelect request={async (params)=>{
                console.log({params})
                return fetch({keyword: params.keyWords, lang})
            }}/>
        </div>
    </div>
}

